package util

import (
	"os"
)

//打印内容到文件中
//tracefile(fmt.Sprintf("receive:%s",v))
func Append(filePath string, str_content string) error {
	fd, _ := os.OpenFile(filePath, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0644)
	buf := []byte(str_content)
	_, err := fd.Write(buf)
	fd.Close()
	return err
}
